﻿using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using Exhibition.Dao;
using Exhibition.IService;
using Exhibition.Dao.ViewModel;
namespace Exhibition.Service.Service
{

    public class ContentService : IContentService
    {


        ContentDao dao = new ContentDao();


        #region IContentService 成员

        public List<E_Content> GetList(int startIndex, int maxRow, out int recordcount)
        {

            return dao.GetList(startIndex, maxRow, out recordcount);

        }


        #endregion


        #region IContentService 成员

        public int Save(ContentModel obj)
        {

            return dao.Save(obj);

        }


        #endregion


        #region IContentService 成员

        public ContentModel GetOneById(int id)
        {

            return dao.GetOneById(id);

        }


        #endregion

        #region IContentService 成员
        public int DelById(int id)
        {

            return dao.DelById(id);

        }


        #endregion



        public List<ContentModel> GetNews(int start, int num,int navId)
        {
            return dao.GetNews(start, num, navId);
        }


        public List<ContentModel> GetNews(int startIndex, int maxRow, out int recordcount, int navId)
        {
            return dao.GetNews(startIndex,maxRow,out recordcount,navId);
        }
    }

}

